import request from '@/utils/request'

// 查询污染物监测列表
export function listPollutant(query) {
  return request({
    url: '/hma/pollutant/list',
    method: 'get',
    params: query
  })
}

// 查询污染物监测详细
export function getPollutant(readingId) {
  return request({
    url: '/hma/pollutant/' + readingId,
    method: 'get'
  })
}

// 新增污染物监测
export function addPollutant(data) {
  return request({
    url: '/hma/pollutant',
    method: 'post',
    data: data
  })
}

// 修改污染物监测
export function updatePollutant(data) {
  return request({
    url: '/hma/pollutant',
    method: 'put',
    data: data
  })
}

// 删除污染物监测
export function delPollutant(readingId) {
  return request({
    url: '/hma/pollutant/' + readingId,
    method: 'delete'
  })
}
